/*
 *  Copyright 2017 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#import <Foundation/Foundation.h>

#import <VRTC/RTCMacros.h>
#import <VRTC/RTCVideoDecoder.h>

#if defined(__cplusplus)
extern "C" {
#endif
#ifndef __VIU_VIDEO_DECODER_FUNC_TYPE__
#define __VIU_VIDEO_DECODER_FUNC_TYPE__
typedef  int (*VIU_OUTPUT_VIDEO_SAMPLE_BUFFER_TYPE)(NSData* video, BOOL bHEVC);
#endif
    
#if defined(__cplusplus)
}
#endif



RTC_OBJC_EXPORT
@interface RTC_OBJC_TYPE (RTCVideoDecoderH264) : NSObject <RTC_OBJC_TYPE(RTCVideoDecoder)>

- (instancetype)initWithHevc;
+ (unsigned long)requestKeyFrameCount;
+ (unsigned long)reviceKeyFrameCount;
+ (void)viu_requestKeyFrame;
+ (BOOL)disableRtcVideoDecoder;
+ (void)setupDisableRtcVideoDecoder:(BOOL)bDisable;
+ (void)setupOutputFunc:(VIU_OUTPUT_VIDEO_SAMPLE_BUFFER_TYPE)func;
+ (unsigned long)seiDelay;

@end
